libxl: introduce libxl__wait_for_device_state
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 15 Dec 2011 17:55:45 +0000 (18:55 +0100)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 15 Dec 2011 17:55:45 +0000 (18:55 +0100)
commit888fa55351bc751a0cca0150c92e01b449c5c219
tree34ee4df3ebff5a4d3a182027feabc57ce63e0478
parent97ee1f5d722e7504bf878b8200047db3f127ddde
libxl: introduce libxl__wait_for_device_state

This is a generic function, that waits for xs watches to reach a
certain state and then executes the passed helper function. Removed
wait_for_dev_destroy and used this new function instead. This
function will also be used by future patches that need to wait for
the initialization of devices before executing hotplug scripts.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h